/**
 * Generate time : 2011-08-17 13:45:32
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cf.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCFMessageCache
 * 
 */
public class ZMCFMessageCache extends DaoEPBase {

	private String fdKeyId = " "; /* FD_KEY_ID */
	private String fdAlias = " "; /* 消息别名 */
	private String fdBusinessId = " "; /* 对应业务ID */
	private String fdMessageType = " "; /* 消息类型 */
	private String fdMessageTitle = " "; /* 消息标题 */
	private String fdFrontPage = " "; /* 对应页面 */
	private String fdPageParameter = " "; /* 页面参数 */
	private String fdSendTime = " "; /* 发送时间 */
	private String fdFilterType = " "; /* 过滤形式 */
	private String fdTableName = " "; /* 对应表名 */
	private String fdDepartmentId = " "; /* 对应部门ID */
	private String fdUserId = " "; /* 对应用户ID */
	private String fdSendStatus = " "; /* 发送状态 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("FD_KEY_ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdAlias");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("消息别名");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdBusinessId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("对应业务ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdMessageType");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("消息类型");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdMessageTitle");
		eiColumn.setFieldLength(200);
		eiColumn.setDescName("消息标题");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFrontPage");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("对应页面");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPageParameter");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("页面参数");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSendTime");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("发送时间");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFilterType");
		eiColumn.setFieldLength(1);
		eiColumn.setDescName("过滤形式");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdTableName");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("对应表名");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDepartmentId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("对应部门ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdUserId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("对应用户ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSendStatus");
		eiColumn.setFieldLength(1);
		eiColumn.setDescName("发送状态");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCFMessageCache() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - FD_KEY_ID
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdAlias - 消息别名
	 * 
	 * @return the fdAlias
	 */
	public String getFdAlias() {
		return this.fdAlias;
	}

	/**
	 * set the fdAlias - 消息别名
	 */
	public void setFdAlias(String fdAlias) {
		this.fdAlias = fdAlias;
	}

	/**
	 * get the fdBusinessId - 对应业务ID
	 * 
	 * @return the fdBusinessId
	 */
	public String getFdBusinessId() {
		return this.fdBusinessId;
	}

	/**
	 * set the fdBusinessId - 对应业务ID
	 */
	public void setFdBusinessId(String fdBusinessId) {
		this.fdBusinessId = fdBusinessId;
	}

	/**
	 * get the fdMessageType - 消息类型
	 * 
	 * @return the fdMessageType
	 */
	public String getFdMessageType() {
		return this.fdMessageType;
	}

	/**
	 * set the fdMessageType - 消息类型
	 */
	public void setFdMessageType(String fdMessageType) {
		this.fdMessageType = fdMessageType;
	}

	/**
	 * get the fdMessageTitle - 消息标题
	 * 
	 * @return the fdMessageTitle
	 */
	public String getFdMessageTitle() {
		return this.fdMessageTitle;
	}

	/**
	 * set the fdMessageTitle - 消息标题
	 */
	public void setFdMessageTitle(String fdMessageTitle) {
		this.fdMessageTitle = fdMessageTitle;
	}

	/**
	 * get the fdFrontPage - 对应页面
	 * 
	 * @return the fdFrontPage
	 */
	public String getFdFrontPage() {
		return this.fdFrontPage;
	}

	/**
	 * set the fdFrontPage - 对应页面
	 */
	public void setFdFrontPage(String fdFrontPage) {
		this.fdFrontPage = fdFrontPage;
	}

	/**
	 * get the fdPageParameter - 页面参数
	 * 
	 * @return the fdPageParameter
	 */
	public String getFdPageParameter() {
		return this.fdPageParameter;
	}

	/**
	 * set the fdPageParameter - 页面参数
	 */
	public void setFdPageParameter(String fdPageParameter) {
		this.fdPageParameter = fdPageParameter;
	}

	/**
	 * get the fdSendTime - 发送时间
	 * 
	 * @return the fdSendTime
	 */
	public String getFdSendTime() {
		return this.fdSendTime;
	}

	/**
	 * set the fdSendTime - 发送时间
	 */
	public void setFdSendTime(String fdSendTime) {
		this.fdSendTime = fdSendTime;
	}

	/**
	 * get the fdFilterType - 过滤形式
	 * 
	 * @return the fdFilterType
	 */
	public String getFdFilterType() {
		return this.fdFilterType;
	}

	/**
	 * set the fdFilterType - 过滤形式
	 */
	public void setFdFilterType(String fdFilterType) {
		this.fdFilterType = fdFilterType;
	}

	/**
	 * get the fdTableName - 对应表名
	 * 
	 * @return the fdTableName
	 */
	public String getFdTableName() {
		return this.fdTableName;
	}

	/**
	 * set the fdTableName - 对应表名
	 */
	public void setFdTableName(String fdTableName) {
		this.fdTableName = fdTableName;
	}

	/**
	 * get the fdDepartmentId - 对应部门ID
	 * 
	 * @return the fdDepartmentId
	 */
	public String getFdDepartmentId() {
		return this.fdDepartmentId;
	}

	/**
	 * set the fdDepartmentId - 对应部门ID
	 */
	public void setFdDepartmentId(String fdDepartmentId) {
		this.fdDepartmentId = fdDepartmentId;
	}

	/**
	 * get the fdUserId - 对应用户ID
	 * 
	 * @return the fdUserId
	 */
	public String getFdUserId() {
		return this.fdUserId;
	}

	/**
	 * set the fdUserId - 对应用户ID
	 */
	public void setFdUserId(String fdUserId) {
		this.fdUserId = fdUserId;
	}

	/**
	 * get the fdSendStatus - 发送状态
	 * 
	 * @return the fdSendStatus
	 */
	public String getFdSendStatus() {
		return this.fdSendStatus;
	}

	/**
	 * set the fdSendStatus - 发送状态
	 */
	public void setFdSendStatus(String fdSendStatus) {
		this.fdSendStatus = fdSendStatus;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdAlias(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdAlias")), fdAlias));
		setFdBusinessId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdBusinessId")), fdBusinessId));
		setFdMessageType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMessageType")), fdMessageType));
		setFdMessageTitle(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMessageTitle")), fdMessageTitle));
		setFdFrontPage(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFrontPage")), fdFrontPage));
		setFdPageParameter(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPageParameter")), fdPageParameter));
		setFdSendTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendTime")), fdSendTime));
		setFdFilterType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFilterType")), fdFilterType));
		setFdTableName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTableName")), fdTableName));
		setFdDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentId")), fdDepartmentId));
		setFdUserId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdUserId")), fdUserId));
		setFdSendStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendStatus")), fdSendStatus));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdAlias", StringUtils.toString(fdAlias, eiMetadata.getMeta("fdAlias")));
		map.put("fdBusinessId", StringUtils.toString(fdBusinessId, eiMetadata.getMeta("fdBusinessId")));
		map.put("fdMessageType", StringUtils.toString(fdMessageType, eiMetadata.getMeta("fdMessageType")));
		map.put("fdMessageTitle", StringUtils.toString(fdMessageTitle, eiMetadata.getMeta("fdMessageTitle")));
		map.put("fdFrontPage", StringUtils.toString(fdFrontPage, eiMetadata.getMeta("fdFrontPage")));
		map.put("fdPageParameter", StringUtils.toString(fdPageParameter, eiMetadata.getMeta("fdPageParameter")));
		map.put("fdSendTime", StringUtils.toString(fdSendTime, eiMetadata.getMeta("fdSendTime")));
		map.put("fdFilterType", StringUtils.toString(fdFilterType, eiMetadata.getMeta("fdFilterType")));
		map.put("fdTableName", StringUtils.toString(fdTableName, eiMetadata.getMeta("fdTableName")));
		map.put("fdDepartmentId", StringUtils.toString(fdDepartmentId, eiMetadata.getMeta("fdDepartmentId")));
		map.put("fdUserId", StringUtils.toString(fdUserId, eiMetadata.getMeta("fdUserId")));
		map.put("fdSendStatus", StringUtils.toString(fdSendStatus, eiMetadata.getMeta("fdSendStatus")));

		return map;

	}
}